<!DOCTYPE html>
<html lang="en">
<head>
    <title></title>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/bootstrap.min.css?v={#$Think.config.ADMIN_VERSION_VAL}" />
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/bootstrap-responsive.min.css?v={#$Think.config.ADMIN_VERSION_VAL}" />
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/uniform.css?v={#$Think.config.ADMIN_VERSION_VAL}" />
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/matrix-style2.css?v={#$Think.config.ADMIN_VERSION_VAL}" />
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/matrix-media.css?v={#$Think.config.ADMIN_VERSION_VAL}" />
    <link rel="stylesheet" href="__PUBLIC__/Admin/font-awesome/css/font-awesome.css?v={#$Think.config.ADMIN_VERSION_VAL}"/>
    <link rel="stylesheet" href="__PUBLIC__/Admin/css/changyun.css?v={#$Think.config.ADMIN_VERSION_VAL}" />
    <link rel="stylesheet" href="__PUBLIC__/kindeditor/themes/default/default.css" />
    <style>
        body{font-size:14px;}
        .form-horizontal label{display:inline-block;}
        .info_table td{text-align: left;}

        .form-horizontal .control-label {
            padding-top: 15px;
            width: 120px;
        }
        .form-horizontal .controls {
            margin-left: 130px;
            padding: 10px 0;
        }
        ul,li{list-style: none;}
        .upload_img_list{width: 100%;display: block;}
        .upload_img_list li{float: left;margin-right: 5px;margin-bottom:10px;}
        .upload_img_list li img{width:80px;height: 80px;border:1px solid #cccccc;padding:1px;}

        .tab_on_select{background: #5bb75b;}
        .tab_on_select a{color:#ffffff;}

        .upload_img_list_350_476{width: 100%;display: block;}
        .upload_img_list_350_476 li{float: left;margin-right: 5px;margin-bottom:10px;}
        .upload_img_list_350_476 li img{width:350px;height: 476px;border:1px solid #cccccc;padding:1px;}
    </style>
</head>
<body style="background: #ffffff;">
<div class="container-fluid" style="padding:0px;">
    <div class="widget-content tab-content">
        <div id="tab1" class="tab-pane active">
            <div class="widget-content nopadding">
                <form action="{#$this_url_action}" method="post" class="form-horizontal" id="form_basic_validate">
                    <div class="control-group">
                        <label class="control-label">用户 :</label>
                        <div class="controls" style="padding-top:15px;">
                            <img src="{#$user_info.user_headimg}" style="width: 40px;height: 40px;border: 1px solid #009688;padding:1px;" /> {#$user_info.user_nickname}</span>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">OPENID :</label>
                        <div class="controls" style="padding-top:15px;">
                            <span style="color:#009688;">{#$user_info.user_openid}</span>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">真实姓名 :</label>
                        <div class="controls">
                            <input type="text" class="span6" id="user_true_name" name="user_true_name" value="{#$user_info.user_true_name}"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">手机号码 :</label>
                        <div class="controls">
                            <input type="text" class="span6" readonly  id="user_true_phone" name="user_true_phone" value="{#$user_info.user_true_phone}"/>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">状态 :</label>
                        <div class="controls">
                            <label><input type="radio" name="user_login_status" value="1" <eq name="user_info.user_login_status" value="1">checked</eq>/>启用</label>
                            <label style="margin-left: 10px;"><input type="radio" name="user_login_status" value="2" <eq name="user_info.user_login_status" value="2">checked</eq>/>禁用</label>
                            <div class="Validform_checktip" style="margin-top: 0px;">设置禁用后，此会员无法访问商城</div>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label">注册时间 :</label>
                        <div class="controls" style="padding-top:15px;">
                            <span>{#$user_info.add_time}</span>
                        </div>
                    </div>
                    <div style="position: fixed;bottom:10px;right:10px;">
                        <input type="hidden" name="user_id" value="{#$user_info.id|default=''}">
                        <button type="button" class="btn layer-open-cancel">取消</button>
                        <button type="submit" class="btn btn-success">提交</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script src="__PUBLIC__/Admin/js/jquery.min.js"></script>
<script src="__PUBLIC__/Admin/js/jquery.ui.custom.js"></script>
<script src="__PUBLIC__/Admin/js/bootstrap.min.js"></script>
<script src="__PUBLIC__/Admin/js/jquery.uniform.js"></script>
<script src="__PUBLIC__/Admin/js/matrix.js"></script>
<script src="__PUBLIC__/Admin/js/matrix.tables.js"></script>
<script src="__PUBLIC__/Admin/js/common.js"></script>
<script src="__PUBLIC__/js/layer/layer.js"></script>
<script src="__PUBLIC__/js/Validform.min.js"></script>
<script charset="utf-8" src="__PUBLIC__/kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="__PUBLIC__/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript">
    KindEditor.ready(function(K) {
        var editor = K.editor({
            allowFileManager : true,
            fileManagerJson: "{#:U('Qiniu/picture')}",
            uploadJson: "{#:U('Qiniu/picture')}"
        });
        K('#cash_proof_file_upload').click(function() {
            editor.loadPlugin('image', function() {
                editor.plugin.imageDialog({
                    imageUrl : K('#cash_proof_file').val(),
                    clickFn : function(data) {
                        K('#cash_proof_file').val(data);
                        $("#cash_proof_file_one_data").html('<li><img src="'+ data +'" /></li>');
                        editor.hideDialog();
                    }
                });
            });
        });
    });
</script>
<script type="text/javascript">
    $(function(){
        var loadi = null;
        var demo1 = $("#form_basic_validate").Validform({
            tiptype:3,
            ajaxPost:true,
            postonce:true,
            tiptype: function (msg, o, cssctl) {
                if (!o.obj.is("form")) {
                    var objtip=o.obj.siblings(".Validform_checktip");
                    cssctl(objtip,o.type);
                    objtip.text(msg);
                }
            },
            beforeSubmit:function(curform){
                loadi = layer.load('表单正在处理中，请稍等 ...');
            },
            callback:function(data){
                layer.close(loadi);
                if(data.status == 1){
                    layer.alert(data.msg,{icon:1},function(){
                        parent.window.location.reload();
                    });
                }else{
                    layer.alert(data.msg,{icon:0});
                }
            }
        });
    })
</script>
</body>
</html>
